package com.symc.test.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/calc")
@RestController
public class Calculator {

    @GetMapping("/add")
    public String add(Integer a,Integer b){
        return String.valueOf(a+b);
    }

    @GetMapping("/minus")
    public String minus(Integer a,Integer b){
        return String.valueOf(a-b);
    }



}
